package com.wn.ticket.service.impl;

import com.wn.ticket.entity.EntranceTicket;
import com.wn.ticket.mapper.EntranceTicketMapper;
import com.wn.ticket.service.EntranceTicketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @创建人 NST
 * @创建时间 2022/8/29
 * @描述
 */
@Service
public class EntranceTicketServiceImpl implements EntranceTicketService {
    @Autowired
    private EntranceTicketMapper entranceTicketMapper;
    @Override
    public void add(EntranceTicket entranceTicket) {
        entranceTicketMapper.add(entranceTicket);
    }

    @Override
    public void update(EntranceTicket entranceTicket) {
        entranceTicketMapper.update(entranceTicket);
    }

    @Override
    public EntranceTicket getById(int id) {
        return entranceTicketMapper.getById(id);
    }

    @Override
    public List<EntranceTicket> getByPerformId(int id) {
        return entranceTicketMapper.getByPerformId(id);
    }

    @Override
    public EntranceTicket getByEntranceTicketId(int id) {
        return entranceTicketMapper.getByEntranceTicketId(id);
    }
}
